﻿using Coolzon.UI.Core.Parts;
using CPPEI.Coolzon.UI.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Core.Runtime.Script
{
    public class RecordScriptObject
    {
        WeakReference _partFrame;
        public RecordScriptObject(Frame partFrame)
        {
            _partFrame = new WeakReference(partFrame) ;
        }

        /// <summary>
        /// 打开场景
        /// </summary>
        /// <param name="scene"></param>
        /// <param name="argumentString">参数字符串 a=1&b=2&c=3</param>
        public void openScene(string scene, string argumentString)
        {
            //Coolzon.Event.NCL.NCLEventBus.PublishAsync(new Coolzon.Event.NCL.NCLOpenSceneEvent(SwitchMode.Replace, "", scene, OpenSceneArgs.BuildFromString(argumentString)));
        }
    }
}
